package net.mikoo.seals.boss.common.utils;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang.StringUtils;

public class ParameterUtil {
	
	public static Long getLong(String string,HttpServletRequest request){
		
		try{
			String value = request.getParameter(string);
			
			if(StringUtils.isNotBlank(value)){
				return Long.parseLong(value);
			}
			
		}catch(Exception e){
			e.printStackTrace();
		}
		
		return null;
	}

}
